/**
 * 成就列表样式
 */
.achievement-list {
  width: 100%;
}

.achievement-tabs {
  margin-bottom: 16px;
}

.achievement-list-content {
  max-height: 600px;
  overflow-y: auto;
}

.achievement-item {
  margin-bottom: 0;
}

.achievement-item .ant-card {
  border-radius: 8px;
  transition: all 0.3s ease;
}

.achievement-item.unlocked .ant-card {
  border-color: #52c41a;
  background: linear-gradient(135deg, #f6ffed 0%, #ffffff 100%);
}

.achievement-item.locked .ant-card {
  opacity: 0.7;
}

.achievement-item .ant-card:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  transform: translateY(-2px);
}

.achievement-content {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.achievement-icon {
  flex-shrink: 0;
}

.icon-wrapper {
  width: 64px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-radius: 12px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

.icon-wrapper.grayscale {
  filter: grayscale(100%);
  opacity: 0.5;
  background: linear-gradient(135deg, #9e9e9e 0%, #757575 100%);
}

.achievement-item.unlocked .icon-wrapper {
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
}

.icon-emoji {
  font-size: 32px;
  line-height: 1;
}

.achievement-info {
  flex: 1;
  min-width: 0;
}

.achievement-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.achievement-name {
  font-size: 16px;
  color: rgba(0, 0, 0, 0.85);
}

.achievement-description {
  font-size: 14px;
  display: block;
  margin-top: 4px;
}

.achievement-progress {
  margin-top: 8px;
}

.achievement-rewards {
  margin-top: 8px;
}

.achievement-unlocked-time {
  font-size: 12px;
  display: block;
  margin-top: 4px;
  color: rgba(0, 0, 0, 0.45);
}

.achievement-locked-hint {
  font-size: 12px;
  display: block;
  margin-top: 4px;
  color: rgba(0, 0, 0, 0.45);
}

/* 响应式布局 */
@media (max-width: 768px) {
  .achievement-content {
    gap: 12px;
  }

  .icon-wrapper {
    width: 48px;
    height: 48px;
  }

  .icon-emoji {
    font-size: 24px;
  }

  .achievement-name {
    font-size: 14px;
  }

  .achievement-description {
    font-size: 13px;
  }

  .achievement-header {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 576px) {
  .achievement-tabs .ant-tabs-tab {
    padding: 8px 12px;
    font-size: 13px;
  }

  .achievement-content {
    flex-direction: column;
    gap: 8px;
  }

  .icon-wrapper {
    width: 56px;
    height: 56px;
    margin: 0 auto;
  }

  .achievement-info {
    text-align: center;
  }

  .achievement-header {
    justify-content: center;
  }

  .achievement-rewards {
    justify-content: center;
  }
}

/* 滚动条样式 */
.achievement-list-content::-webkit-scrollbar {
  width: 6px;
}

.achievement-list-content::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 3px;
}

.achievement-list-content::-webkit-scrollbar-thumb {
  background: #888;
  border-radius: 3px;
}

.achievement-list-content::-webkit-scrollbar-thumb:hover {
  background: #555;
}
